﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Frontend.master" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" runat="server" contentplaceholderid="CPMainContent">
  <div class="post">
  <h2 class="title">
    LOGIN</h2>
  <div class="entry">
    <p>
      If you are are already a member of CrossHair, please login below.
    </p>
    <asp:Login ID="Login1" runat="server" PasswordRequiredErrorMessage="Please " 
      UserNameLabelText="Email Address:" FailureText="Login Failed" 
      DestinationPageUrl="~/Members/Profile.aspx" RememberMeSet="True">
      <LayoutTemplate>
        <table cellpadding="1" cellspacing="0" style="border-collapse:collapse;">
          <tr>
            <td>
              <table cellpadding="0">
                <tr>
                  <td align="right">
                    <asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName">Email Address:</asp:Label>
                  </td>
                  <td>
                    <asp:TextBox ID="UserName" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" 
                      ControlToValidate="UserName" ErrorMessage="Please enter your email address" 
                      ToolTip="Email Address Required" ValidationGroup="Login1" 
                      CssClass="ErrorMessage">*</asp:RequiredFieldValidator>
                  </td>
                </tr>
                <tr>
                  <td align="right">
                    <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password">Password:</asp:Label>
                  </td>
                  <td>
                    <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" 
                      ControlToValidate="Password" ErrorMessage="Please enter your password" ToolTip="Please enter your password" 
                      ValidationGroup="Login1" CssClass="ErrorMessage" Text="*">*</asp:RequiredFieldValidator>
                  </td>
                </tr>
                <tr>
                  <td align="right">
                  </td>
                  <td>
                    <asp:CheckBox ID="RememberMe" runat="server" Text="Remember Me." />
                  </td>
                </tr>
                <tr>
                  <td align="center" colspan="2" style="color:Red;">
                    <asp:Label ID="FailureText" runat="server" CssClass="ErrorMessage"></asp:Label>
                  </td>
                </tr>
                <tr>
                <td colspan="2">
                  <asp:ValidationSummary ID="ValidationSummaryLogin1" runat="server" 
                    CssClass="ErrorMessage" HeaderText="Invalid Login" ShowMessageBox="True" 
                    ShowSummary="False" ValidationGroup="Login1" />
                </td>
                </tr>
                <tr>
                  <td align="right" colspan="2">
                    <asp:Button ID="LoginButton" runat="server" CommandName="Login" Text="Login" 
                      ValidationGroup="Login1" />
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </LayoutTemplate>
    </asp:Login>
    <p>
      If you are having problems logging in, either <a href="~/Members/RetrievePassword.aspx" runat="server">retrieve your password</a> or 
      <a href="~/Members/Register.aspx" runat="server">register</a> as a new user.</p>
  </div>
</div>
</asp:Content>


